举例:配置设备作为STelnet客户端登录其他设备 您所在的位置:网站首页 create a password翻译 举例:配置设备作为STelnet客户端登录其他设备

举例:配置设备作为STelnet客户端登录其他设备

2023-03-28 18:05| 来源: 网络整理| 查看: 265

STelnet客户端连接SSH服务器。

# 第一次登录,需要使能SSH客户端首次登录功能。

使能客户端Client001首次登录功能。

system-view [HUAWEI] sysname client001 [client001] ssh client first-time enable [client001] quit

使能客户端Client002首次登录功能。

[client002] ssh client first-time enable [client002] quit

# STelnet客户端Client001用password认证方式连接SSH服务器,输入配置的用户名和密码。

stelnet 10.1.1.1 1025 Trying 10.1.1.1 ... Press CTRL+K to abort Connected to 10.1.1.1 ... The server's public key does not match the one cached before. The server is not authenticated. Continue to access it?[Y/N]:y The keyname:10.1.1.1 already exists. Update it? [Y/N]:n Please input the username: client001 Please select public key type for user authentication [R for RSA/D for DSA/E for ECC] Please select [R/D/E]:r Enter password:

输入密码,显示登录成功信息如下:

Warning: The initial password poses security risks. The password needs to be changed. Change now? [Y/N]:n Info: The max number of VTY users is 21, the number of current VTY users online is 4, and total number of terminal users online is 4. The current login time is 2013-12-31 11:22:06. The last login time is 2013-12-31 10:24:13 from 10.1.2.2 through SSH.

# STelnet客户端Client002用RSA认证方式连接SSH服务器。

stelnet 10.1.1.1 1025 Trying 10.1.1.1 ... Press CTRL+K to abort Connected to 10.1.1.1 ... The server's public key does not match the one cached before. The server is not authenticated. Continue to access it?[Y/N]:y The keyname:192.168.1.182 already exists. Update it? [Y/N]: n Please input the username: client002 Please select public key type for user authentication [R for RSA/D for DSA/E for ECC] Please select [R/D/E]:r Info: The max number of VTY users is 21, the number of current VTY users online is 4, and total number of terminal users online is 4. The current login time is 2013-12-31 11:36:06.

如果登录成功,用户将进入用户视图。如果登录失败,用户将收到Session is disconnected的信息。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有